<?php

/**
 * Disputeo captcha form element.
 *
 * @category Zend
 * @package Disputeo
 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc.
 * @version $Id$
 * @link http://framework.zend.com
 * @since Available since release 1.0
 * @license GPL v3
 */
class Disputeo_Form_Element_Captcha extends Zend_Form_Element_Captcha
{

    /**
     * Specify captcha image/font details
     * 
     * @param type $spec
     * @param type $options 
     */
    public function __construct($spec, $options = null)
    {
        $options['captcha'] = array(
            'captcha' => 'Image',
            'wordLen' => 6,
            'timeout' => 300,
            'font' => APPLICATION_PATH . '/../public/fonts/Captcha.ttf',
            'imgDir' => APPLICATION_PATH . '/../public/captcha/',
            'imgUrl' => '/captcha/',
            'helper' => null
        );

        parent::__construct($spec, $options);
    }

}